home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / erf.arc / ERFT1.DAT < prev    next >
Encoding:
Text File  |  1985-08-12  |  1.8 KB  |  56 lines

  1. "            z                erf(z)           abs(error)
  2. "
  3.         0.0     0.0
  4.     2.579182479E-11 2.579182479E-11    {transition point between 0 and
  5.     2.579282480E-11 2.579282480E-11     non-zero for CP/M Turbo Pascal}
  6.     1E-10     1E-10                {for extremely small values,
  7.         1E-6     1E-6                 erf(x) = x to within accuracy}
  8. "
  9.      .01      .0112834156
  10.      .02      .0225645747
  11.      .03      .0338412223
  12.      .05      .0563719778
  13.      .06      .0676215944
  14.      .08      .0900781258
  15.      .09      .1012805939
  16. "
  17. "       The values computed for erf(z), with z small, have the 
  18. "       indicated  variance from table values of  The Handbook
  19. "       of Mathematical Functions [HMF: Table 7.1].    Results
  20. "       to within 1E-5 are usually quite acceptable.
  21. /            z                erf(z)           abs(error)
  22. "
  23.      .18      .2009358390
  24.      .37      .3992059840
  25. "
  26.      .46      .4846553900
  27.      .47      .4937450509
  28.          .48      .5027496707
  29.      .49      .5116682612
  30.      .50      .5204998778
  31. "
  32.      .60      .6038560908
  33.      .81      .7480032806
  34. "
  35. "       Midrange values, near .5, reveal the best that can be 
  36. "       obtained when either erf(z) or  erfc(z) = 1-erf(c) is
  37. "       used.  Test values are from [HMF: Table 7.1].
  38. /            z                erf(z)           abs(error)
  39. "
  40.         1.83      .9903468051
  41.     2.506628275 .9996072495
  42.         3.069980124 .9999858556
  43.         3.544907702 .9999994648
  44.     3.963327298 .9999999792
  45.     4.341607527 .9999999992
  46. "
  47.     4.6894721   1.0
  48.         5.0        1.0
  49.         10.0        1.0
  50. "
  51. "       Near the tail, as erf(z) approaches 1.0, [HMF: Table 7.3]
  52. "       values of  erfc(z) = 1 - erf(z)  are used to see how well
  53. "       accuracy is maintained despite adjustments by 1.0 in erf.
  54. "
  55. "ERFT1> End of test.
  56.